package com.chenjiagou.feign;

import com.chenjiagou.pojo.Flight;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;


@FeignClient(name = "flight-service") // 根据实际服务名称调整
public interface FlightFeignClient {

    @GetMapping("/flight/all")
    List<Flight> getAllFlights();
}
